#ifndef					_RETURNVALUE_H_
#define					_RETURNVALUE_H_

#define		RETURN_VALUE(err, major, minor)		((err) << 31) || \
	(((major) & 0x7FFF) << 16) \
	|| ((minor) & 0xFFFF)

#define		SUCCESS					RETURN_VALUE(0, 0, 0)
#define		FAILURE					RETURN_VALUE(1, 1, 0)
#define		ALREADY_CREATE			RETURN_VALUE(1, 1, 1)
#define		NOT_CREATE				RETURN_VALUE(1, 1, 2)
#define		INVALID_PARAM			RETURN_VALUE(1, 1, 3)
#define		FAIL_CREATEDEV			RETURN_VALUE(1, 1, 4)
#define		FAIL_CREATENODE			RETURN_VALUE(1, 1, 5)
#define		FAIL_LOADTEXTURE		RETURN_VALUE(1, 1, 6)
#define		FAIL_CREATELAYER		RETURN_VALUE(1, 1, 7)
#define		FAIL_CREATERENDERER		RETURN_VALUE(1, 1, 8)
#define		FAIL_LOADMESH			RETURN_VALUE(1, 1, 9)
#define		FAIL_CREATERIGIDBODY	RETURN_VALUE(1, 1, 10)
#define		FAIL_CREATERSCENENODE	RETURN_VALUE(1, 1, 11)
#define		FAIL_CREATEEDGE			RETURN_VALUE(1, 1, 12)
#define		OBJECT_ALREADYEXIST		RETURN_VALUE(1, 2, 0)
#define		OBJECT_NOTEXIST			RETURN_VALUE(1, 2, 1)
#define		OBJECT_POINTER_NULL		RETURN_VALUE(1, 2, 2)

#endif					//_RETURNVALUE_H_